package com.TestHeiMa;

/**
 * @Auther: shiquan
 * @Date: 2024/10/22 - 10 - 22 -20:54
 */
public class Round extends Shape{
    public Round() {
    }


    private double radius;
    private double PI=3.14;

    public Round(double radius, double PI) {
        this.radius = radius;
        this.PI = PI;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double getPI() {
        return PI;
    }

    public void setPI(double PI) {
        this.PI = PI;
    }

    @Override
    public double area() {
        return PI * radius * radius;
    }

    @Override
    public double Perimeter() {
        return 2*PI*radius;
    }



 }

